package com.xmy.erp.entity;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@ApiModel(value = "Permission对象", description = "")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("权限名称")
    private String name;

    @ApiModelProperty("权限类型 1为菜单 2为功能 3为APItype")
    private Integer type;

    @ApiModelProperty("权限编码")
    private String code;

    @ApiModelProperty("权限描述")
    private String description;

    private Long pid;

    @ApiModelProperty("企业可见状态")
    private Integer enVisible;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }
    public Integer getEnVisible() {
        return enVisible;
    }

    public void setEnVisible(Integer enVisible) {
        this.enVisible = enVisible;
    }

    @Override
    public String toString() {
        return "Permission{" +
            "id=" + id +
            ", name=" + name +
            ", type=" + type +
            ", code=" + code +
            ", description=" + description +
            ", pid=" + pid +
            ", enVisible=" + enVisible +
        "}";
    }
}
